package day_05;

/**
 * @ClassName Day05Homework_7
 * @Description TODO
 * @Author hp
 * @Date 2021/6/7 16:04
 * @Version 1.0
 **/
public class Day05Homework_7 {
    public static void main(String[] args) {
        int[] arr1 = new int[]{1, 2, 3, 4, 3, 2, 1};
        int[] arr2 = new int[]{1, 2, 3, 4, 3, 2, 1};
        boolean flag = true;
        for (int i = 0; i < arr1.length; i++) {
            if (arr1[i] != arr2[i]) {
                flag = false;
            }
        }
        for (int i = 0; i < arr1.length ; i++) {
            System.out.print(arr1[i]+"\t");
        }
        System.out.println();
        for (int i = 0; i < arr2.length ; i++) {
            System.out.print(arr2[i]+"\t");
        }
        System.out.println("是否一致:"+flag);
    }

}
